#include "proc.h"


void proc()
{
  char a[SIZE];
  const char *lable = "|/-\\";
  memset(a, '\0', sizeof(a));

  for(int i = 0; i <= 100; i++)
  {
    printf("[%-100s][%d%%][%c]\r", a, i, lable[i%4]);
    a[i] = STYLE;

    fflush(stdout);
    sleep(1);
  }

  printf("\n");
}
